#include "ThreadManage.h"
#include <vld.h>
#include "net_work_task.h"
#include "NetTest.h"

int main(int argc, char* argv[])
{
	typedef ThreadManage<ITask*, helpers::Lock<CRITICAL_SECTION>> ThreadMgr;
	ThreadMgr thr_mgr;
	thr_mgr.initialize(3);
	thr_mgr.add_task(new NetWorkTask());
	thr_mgr.add_task(new NetTest());
	thr_mgr.shutdown();
	return 0;
};